<style>
  .region_city .city-picker-span {
      width: 80% !important;
      position: relative;
  }
</style>

<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST">
  <!-- 用户昵称 -->
  <div class="form-group">
      <label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Bnickname')}:</label>
      <div class="col-xs-12 col-sm-8">
          <input type="text" class="form-control" id="nickname" name="row[nickname]" data-rule="required;nickname"
              placeholder="{:__('Bnickname')}" />
      </div>
  </div>
  <!-- 邮箱 -->
  <div class="form-group">
      <label for="email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
      <div class="col-xs-12 col-sm-8">
          <input type="text" class="form-control" id="email" name="row[email]" data-rule="required;email" placeholder="{:__('Email')}" />
      </div>
  </div>
  <!-- 手机 -->
  <div class="form-group">
      <label for="mobile" title="手机号码" class="control-label col-xs-12 col-sm-2">{:__('mobile')}:</label>
      <div class="col-xs-12 col-sm-8">
          <input type="text" title="手机号码" class="form-control" id="mobile" name="row[mobile]"
              data-rule="required;mobile" placeholder="{:__('mobile')}" />
      </div>
  </div>
  <!-- 密码 -->
  <div class="form-group">
    <label for="password" title="密码" class="control-label col-xs-12 col-sm-2">{:__('password')}:</label>
    <div class="col-xs-12 col-sm-8">
        <input type="password" title="密码" class="form-control" id="password" name="row[password]"
            data-rule="required" placeholder="{:__('password')}" />
    </div>
  </div>
  <!-- 性别 -->
  <div class="form-group">
      <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
      <div class="col-xs-12 col-sm-8">
          <select id="c-gender" data-rule="required" class="form-control selectpicker" name="row[gender]">
              {foreach name=" $SexList" item="vo"}
                <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo} </option>
              {/foreach}
          </select>
      </div>
  </div>
  <!-- 认证状态 -->
  <div class="form-group">
      <label class="control-label col-xs-12 col-sm-2">{:__('BAuthStatus')}:</label>
      <div class="col-xs-12 col-sm-8">
          <select  id="c-status" class="form-control selectpicker" name="row[auth]" >
            {foreach name=" $AuthList" item="vo"}
              <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo} </option>
            {/foreach}
          </select>
      </div>
  </div>
  <!-- 余额 -->
  <div class="form-group">
      <label for="money" class="control-label col-xs-12 col-sm-2">{:__('Bmoney')}:</label>
      <div class="col-xs-12 col-sm-8">
          <input type="number" min="0" class="form-control" id="c-money" name="row[money]"
              data-rule="required" placeholder="{:__('money')}" />
      </div>
  </div>
  <!-- 来源 -->
  <div class="form-group">
      <label class="control-label col-xs-12 col-sm-2">{:__('Bsource')}:</label>
      <div class="col-xs-12 col-sm-8">
          {:build_select('row[sourceid]', $SourceList, null, ['class'=>'selectpicker', 'required'=>''])}
      </div>
  </div>
  <!-- 成交状态 -->
  <div class="form-group">
      <label class="control-label col-xs-12 col-sm-2">{:__('BdealText')}:</label>
      <div class="col-xs-12 col-sm-8">
          <select id="c-deal" data-rule="required" class="form-control selectpicker" name="row[deal]">
              {foreach name=" $DealList" item="vo"}
              <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo} </option> {/foreach}
          </select>
      </div>
  </div>
  <!-- 地区 -->
  <div class="form-group">
      <label class="control-label col-xs-12 col-sm-2">地区选择:</label>
      <div class="col-xs-12 col-sm-10 region_city">
          <input id="region" readonly type="text" data-toggle="city-picker">
          <!-- 用于提交数据把选中的地区传给后端处理 -->
          <input type="hidden" name="row[code]" id="region-code">
      </div>
  </div>

  <!-- 按钮 -->
  <div class="form-group hidden layer-footer">
      <label class="control-label col-xs-12 col-sm-2"></label>
      <div class="col-xs-12 col-sm-8">
          <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
          <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
      </div>
  </div>
</form>